// import { Schema } from "@/api/interface/iot";
import http from "@/api";
import { ContentTypeEnum } from "@/enums/httpEnum";
//添加设备变量
export const addSensor = (params?: any) => {
	return http.post(`/device/sensor/add`, params);
};
//修改设备变量
export const modifySensor = (params?: any) => {
	return http.post(`/device/sensor/modify`, params);
};
//修改设备变量
export const removeSensor = (params?: any) => {
	return http.post(`/device/sensor/remove`, params);
};
//触发设备数据逆转schema
export const deviceDataSchema = (params?: any) => {
	return http.post(`/device/schema`, params);
};
//设备变量下发
export const setSensor = (params?: any) => {
	return http.post(`/device/sensor/set`, params);
};

///////////凝思大模型//////////////////
//LLM对话
export const chatLLM = (params?: any) => {
	return http.post(`/chat/chat`, params, { headers: { noLoading: true } });
};
//知识库对话
export const chatKnowledge = (params?: any) => {
	return http.post(`/chat/knowledge_base_chat`, params, { headers: { noLoading: true } });
};
//视觉对话
export const chatVisual = (params?: any) => {
	return http.post(`/chat/visual_chat`, params, { headers: { noLoading: true } });
};
//智慧生图
export const chatTextImg = (params?: any) => {
	return http.post(`/chat/text_img_chat`, params, { headers: { noLoading: true } });
};
//搜索引擎问答
export const chatEngine = (params?: any) => {
	return http.post(`/chat/search_engine_chat`, params, { headers: { noLoading: true } });
};
//代码走读
export const chatCode = (params?: any) => {
	return http.post(`/chat/code_chat`, params, { headers: { noLoading: true } });
};
//代码生成
export const chatCodeChat = (params?: any) => {
	return http.post(`/chat/code_chat`, params, { headers: { noLoading: true } });
};
//文件对话
export const chatFile = (params?: any) => {
	return http.post(`/chat/file_chat`, params, { headers: { noLoading: true } });
};

//文件上传
export const chatFileUpload = (params?: any) => {
	return http.post(`/knowledge_base/upload_temp_docs`, params, { headers: { noLoading: true } });
};

//文件上传mini
export const chatFileUploadMinio = (params?: any) => {
	return http.post(`/file/uploadfile`, params, { headers: { "Content-Type": ContentTypeEnum.FORM_DATA, noLoading: true } });
};
